package cn.yunhe.video.Service.impl;


import cn.yunhe.video.Service.ICollectService;
import cn.yunhe.video.dao.ICollectMapper;
import cn.yunhe.video.entity.Collect;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CollectService extends ServiceImpl<ICollectMapper, Collect> implements ICollectService {

    @Autowired
    private ICollectMapper collectMapper;

    @Override
    public Collect getCollectByName(int uid) {
        return collectMapper.getCollectByName(uid);
    }

    @Override
    public void addCollect(Collect collect) {
        collectMapper.addCollect(collect);
    }

    @Override
    public void delCollect(Collect collect) {
        collectMapper.delCollect(collect);
    }

    @Override
    public void updateCollectDown(Collect collect) {
        collectMapper.updateCollectDown(collect);
    }

    @Override
    public void updateCollectUp(Collect collect) {
        collectMapper.updateCollectUp(collect);
    }
}
